<?php if ($_GET['pg'] == 'pages'){
    include 'pagini.php';
} elseif ($_GET['pg'] == 'categories'){
    include 'categorii.php';
} elseif ($_GET['pg'] == 'news'){
    include 'news.php';
} else {
    include 'restul.php';
}?>